<% if @posts and @posts.length > 0 -%>
<%# there were posts returned by this search -%>

	<% for post in @posts -%>
		<a href="<%= Post.permalink(post) %>" title="<%= post.title %>"><p><b><%= post.title %></b><br/><%= post.created_at.strftime(Site.date_format) %> <%= post.created_at.strftime(Site.time_format) %></p></a>
	<% end -%>

	<p id="full_link"><a href="<%= Site.full_url + '/search/full?q=' + CGI.escape(params[:q].to_s) %>" title="View a full list of results">View a full list of results...</a></p>

<% else -%>
	<% # no results, return message -%>

	<a name="sorry"><p>There were no results, sorry. Try being more specific or a use different query.</p></a>

<% end -%>